#ifndef __SWC_OTA_H__
#define __SWC_OTA_H__

#define REC_MAX_NUM 1030        // UART receive max num of bytes
                                // for trigger IDLE irq, the true REC_MAX_NUM is 1029

typedef enum {
    WAIT_REQ_DOWNLOAD,
    OTA_DOWNLOADING,
    WAIT_REQ_UPDATE,
    OTA_END,
}E_Ota_State_t;

void ota_state_machine_thread(void* argument);  // ota_state_machine_thread


#endif
